<%@page import="java.sql.PreparedStatement"%>
<%@page import="bit.util.ConnectionContext"%>
<%@page import="java.sql.Connection"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
int no = Integer.parseInt(request.getParameter("no"));

String sql = "DELETE FROM champ WHERE no=?";

Connection conn = ConnectionContext.getConnection();
PreparedStatement pstmt = conn.prepareStatement(sql);
pstmt.setInt(1, no);
int count = pstmt.executeUpdate();
%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>챔프 정보 삭제</title>
</head>
<body>
<%
if (count > 0) {
%>
	챔프 정보 삭제하였습니다.
<%
} else {
%>
	챔프 정보 삭제에 실패하였습니다.
<%
}
%>
<br/>
<a href="list.jsp">챔프 목록</a>
</body>
</html>